package com.onesports.intelligent.k12.polarlight.domain.dto.sys;

import com.onesports.framework.kit.common.valid.Length;
import com.onesports.framework.kit.common.valid.NotEmpty;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * 账号DTO
 *
 * @author Wsy
 **/
@Data
@ApiModel("账号DTO")
public class AccountDTO {

    @ApiModelProperty(value = "账号id(修改时传，新增忽略)")
    private String id;

    @ApiModelProperty(value = "手机号",required = true)
    @NotEmpty(message = "手机号不能为空")
    @Length(max = 11,message = "手机号不可超过11位")
    private String phone;

    @ApiModelProperty(value = "姓名",required = true)
    @NotEmpty(message = "姓名不能为空")
    @Length(max = 20,message = "姓名字数不可超过20")
    private String username;

    @ApiModelProperty(value = "性别(1:男  2：女)",required = true)
    @NotEmpty(message = "性别不能为空")
    private String gender;

    @ApiModelProperty(value = "密码")
    private String password;

    @ApiModelProperty(value = "状态(true 启用  false 停用)")
    private Boolean status;
}
